﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Tpro6Container
{
    public partial class FrmNowTime : Form
    {
        private int year,mon,day, hour,meter,sec;
        public FrmNowTime(int year, int mon, int day, int hou, int met, int sec)
        {
            InitializeComponent();
            this.maskedTextBox1.Text = year.ToString("D4") + mon.ToString("D2") + day.ToString("D2") + hou.ToString("D2") + met.ToString("D2") + sec.ToString("D2");

        }
        public DateTime NowTime
        {
            get
            {
                DateTime  dt = DateTime.Now;
                return dt; 
            }
        }
        public int _Hou
        {
            get { return 0; }
        }

        public int _Met
        {
            get { return 0; }
        }

        public int _Sec
        {
            get { return 0; }
        }
        public int _Year
        {
            get { return 0; }
        }

        public int _Mon
        {
            get { return 0; }
        }
        public int _Day
        {
            get { return 0; }
        }

      

        private void ultraButton5_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.OK;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Cancel;
        }

        private void maskedTextBox1_MaskInputRejected(object sender, MaskInputRejectedEventArgs e)
        {

        }

        private void FrmNowTime_Load(object sender, EventArgs e)
        {

        }
    }
}
